package up_down_share.viewcontroller;

import up_down_share.updaonwshare.v01.R;
import android.content.Intent;
import android.widget.*;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class LoginActivity extends Activity {

	// --------------------------------------------------
	// ----- constants -----
	// --------------------------------------------------
	// public static String package_global = "hk.com.farmplus.fpspty01";

	// --------------------------------------------------
	// ----- properties -----
	// --------------------------------------------------

	private Button Demo = null;

	// --------------------------------------------------
	// ----- extends -----
	// --------------------------------------------------

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.loginview);

		Demo = (Button) findViewById(R.id.Demo_button);

		if (Demo != null) {
			System.out.println("Demo button is not  null");
			Demo.setOnClickListener(new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					// startActivity(new
					// Intent("hk.com.farmplus.fpspty01.createUser"));
					// System.out.println("Demo button listener work");
					startActivity(new Intent("createUser"));
				}
			});
		} else {
			System.out.println("Demo button is  null");
		}

	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	//
	@Override
	protected void onResume() {
		super.onResume();

	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

	// --------------------------------------------------
	// ----- functions -----
	// --------------------------------------------------
	private Intent ToCreateUser() {

		return new Intent("createUser");
	}

}
